var e = require("../@babel/runtime/helpers/interopRequireDefault").default;

Object.defineProperty(exports, "__esModule", {
    value: !0
}), exports.default = void 0;

var t = e(require("../service/index")), r = e(require("../config/baseUrl")), n = getApp(), i = function(e, r, n) {
    return new Promise(function(i, u) {
        t.default.get(e, r, n).then(function(e) {
            "0000" === e.code ? i(e) : "32008" !== e.code && wx.showToast({
                icon: "none",
                title: e.msg,
                duration: 3e3
            }), u(e);
        }).catch(function(e) {
            u(e);
        });
    });
}, u = {
    getUserInfo: function() {
        return i("/normal-activity-pdg/invite-present-fee/query-user-info?channel=".concat(n.globalData.aucChannel), {}, {
            baseUrl: r.default
        });
    },
    getRecordList: function(e, t) {
        return i("/normal-activity-pdg/invite-present-fee/query-invite-info", {
            page: e,
            status_type: t
        }, {
            baseUrl: r.default
        });
    },
    getHF: function(e) {
        return i("/normal-activity-pdg/invite-present-fee/receive-fee", e ? {
            id: e
        } : {}, {
            baseUrl: r.default
        });
    },
    getSucceedUser: function() {
        return i("/normal-activity-pdg/invite-present-fee/query-succeed-record", {}, {
            baseUrl: r.default
        });
    }
};

exports.default = u;